package com.dailyblue.example.springcloud.config.controller;

import com.dailyblue.example.springcloud.commons.util.JsonResult;
import com.dailyblue.example.springcloud.commons.util.ResultTool;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

//@RestController
@RequestMapping("/second")
public class SecondController {
    @Value("${project.id}")
    private Integer id;
    @Value("${project.name}")
    private String name;


    @GetMapping("/a")
    public JsonResult a() {
        return ResultTool.success("id:" + id + ",name:" + name);
    }
}
